-- GENERATED SPELL FOR [Blackrock Summoner] --


function spell0_4463(pUnit, Event) --@Fire Shield II,n/a--
pUnit:FullCastSpellOnTarget(184,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4463', 1000, 1)
end

function spell1_4463(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4463', 3000, 1)
end

function spell2_4463(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_4463', 15000, 1)
end

function spell3_4463(pUnit, Event) --@Summon Imp,Self--
pUnit:FullCastSpellOnTarget(11939,pUnit)
pUnit:RegisterEvent('Sorts_4463', 560, 1)
end

function Sorts_4463(pUnit, Event)
local choix_sorts_4463 = math.random(0, 3)
if choix_sorts_4463 == 0 then
pUnit:RegisterEvent('spell0_4463', 1, 1)
end
if choix_sorts_4463 == 1 then
pUnit:RegisterEvent('spell1_4463', 1, 1)
end
if choix_sorts_4463 == 2 then
pUnit:RegisterEvent('spell2_4463', 1, 1)
end
if choix_sorts_4463 == 3 then
pUnit:RegisterEvent('spell3_4463', 1, 1)
end
end

function mob4463_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4463', math.random(1500, 3000), 1)
end

function mob4463_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4463_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4463_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4463, 1, 'mob4463_Action')
RegisterUnitEvent(4463, 2, 'mob4463_Leave')
RegisterUnitEvent(4463, 3, 'mob4463_Kill')
RegisterUnitEvent(4463, 4, 'mob4463_Die')
